package com.neu.flashmall.product.service.impl;

import com.neu.flashmall.product.entity.PmsCategoryBrand;
import com.neu.flashmall.product.mapper.PmsCategoryBrandMapper;
import com.neu.flashmall.product.service.PmsCategoryBrandService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PmsCategoryBrandServiceImpl implements PmsCategoryBrandService {

    @Resource
    private PmsCategoryBrandMapper pmsCategoryBrandMapper;

    @Override
    public List<PmsCategoryBrand> getByCategory(Long categoryId) {
        return pmsCategoryBrandMapper.getByCategoryId(categoryId);
    }
}
